Crystal Chemistry of Perovskite-Type Hydride NaMgH3: Implications for Hydrogen Storage