Relationship between condition of deposition and properties of W-Ti-N thin films prepared by reactive magnetron sputtering