Light scattering by diffraction gratings, false gratings and random rough surfaces: numerical comparison