Magnetic, Structural, and Chemical Properties of Cobalt Nanoparticles Synthesized in Ionic Liquids.