Optical constants of CNx thin films from reflection electron energy loss spectroscopy