The effect of oxygen and nitrogen additives on the growth of nanocrystalline diamond films