Effect of oxygen on the optical and electrical properties of nucleic acids