Diffraction of light by a corrugated magnetic grating: experimental results and calculation using a perturbation approximation to the Rayleigh method