Mechanical properties and electronic structure of TiC, Ti0.75W0.25C, Ti0.75W0.25C0.75N0.25, TiC0.75N0.25 and TiN