Synthesis of magnetic nanoparticles and magnetic fluids for biomedical applications