Formation of C–N thin films by ion beam deposition