Co-Pt bimetallic nanoparticles with tunable magnetic and electrocatalytic properties prepared by atomic layer deposition.