Feasibility of resonant diffraction radiation from inclined gratings for a nondestructive beam diagnostics