The effective permittivity method in the problem of wave diffraction by the oft-recurring dielectric grating