Effects of oxygen on diamond growth