Laser-based diagnostics of electronically excited oxygen atoms at extreme temperatures