MgTiO3Hx and CaTiO3Hx perovskite compounds for hydrogen storage applications