Optical modulation in conducting thin films