Atmosphere effects in the processing of silicon carbide and silicon oxycarbide thin films and coatings