Learning mri contrast-agnostic registration