Magneto-thermoelastic response in a functionally graded rotating medium due to a periodically varying heat source