Optical response of a thin film with arbitrary deterministic roughness of the interfaces.