Quenching of luminescence by oxygen