Metallopolymer precursors to L10-CoPt nanoparticles: synthesis, characterization, nanopatterning and potential application.