Cobalt-based nanoparticles synthesis in organic solvents with environmentally sound processes