Spectroscopic properties of MgH2, MgD2, and MgHD calculated from a new ab initio potential energy surface.