Text this: Investigation of resonant polarization radiation of relativistic electrons in gratings at small angles