Tungsten and tungsten–carbon thin films deposited by magnetron sputtering