Direct and pulse current electrodeposition of Ni–W–TiO2 nanocomposite coatings