A scattering model for surface-textured thin films