Investigation of corrosion and fouling resistance of Ni–P-nanoparticles composite coating using online monitoring technology