Optical diagnostic techniques in thick and thin films