Study of debye temperatures of Mg2Ni, Mg2NiH4 and Mg2NiD4 using nuclear resonant scattering of gamma rays