Diffraction of Hermite–Gaussian beams from a sinusoidal conducting grating