Near-infrared spectroscopy for monitoring water permeability of optical coatings on plastics.