Investigation of light scattering from rough periodic surfaces — numerical solutions