Carbon stars with increased oxygen and nitrogen abundances: Hydrostatic dust-free model atmospheres