Thermo-optical properties of hydrogenated amorphous carbon and nitrogen-modified carbon layers from in situ ellipsometric studies