Green electrochemical template synthesis of CoPt nanoparticles with tunable size, composition, and magnetism from microemulsions using an ionic liquid (bmimPF6)