Modulation of the magnetic properties of CoNi coatings by electrodeposition in the presence of a redox cationic surfactant