Mechanism of N2 implantation of Co, WC, and Co–W alloys