Synthesis, functionalization, and nanomedical applications of functional magnetic nanoparticles