Characterization of electrodeposited Ni–TiO2 nanocomposite coatings