Differences in carbon and nitrogen abundances between field and cluster early-type galaxies