Influence of the substrate on structure and magnetic properties of Co–N thin films