Scattering of electromagnetic plane wave by an infinite plane grating on a dielectric slab for oblique incidence