Optical properties of gold films and the Casimir force