Magneto-thermoelastic interaction in a functionally graded medium under gravitational field