Absorption spectroscopy of molecular oxygen during pulsed laser deposition of thin films