Influence of oxygen and nitrogen on the growth of hot-filament chemical vapor deposited diamond films