The use of a spectrophotometer for the optical monitoring of thin films