The effects of a third element on structure and properties of W–C/N