Influence of oxygen on the nucleation and growth of diamond films