Effects of pulse electrodeposition parameters on the properties of Ni–TiO2 nanocomposite coatings