Photothermally modulated magnetic resonance applied to the study of the magnetic phase transition in gadolinium thin films