Theoretical study on the stability, elasticity, hardness and electronic structures of W-C binary compounds