Structural characterization of NaMgH2F and NaMgH3