Preparation and electrocatalytic activity of tungsten carbide and titania nanocomposite