Numerical solutions of the reduced Rayleigh equation for the scattering of electromagnetic waves from rough dielectric films on perfectly conducting substrates