Monitoring the structural and chemical properties of CNx thin films during in situ annealing in a TEM