In-situ diagnostics of pulsed laser ablation through atomic oxygen absorption spectroscopy