Neutron powder diffraction with (nat)Sm: crystal structures and magnetism of a binary samarium deuteride and a ternary samarium magnesium deuteride.