Comparative investigation of scratch resistance and tribological performance of Ni–B–TiO2 composite coatings prepared by conventional and novel processing methods