Optical properties of thin films and the Berreman effect