In-situ diagnostics of pulsed laser deposition based on oxygen absorption spectroscopy