Elastic properties of perovskite-type hydride NaMgH3 for hydrogen storage