Mechanistic study of Ni–Cr–P alloy electrodeposition and characterization of deposits