Influence of nitrogen content on the structural, electrical and mechanical properties of CrNx thin films