Covalent functionalization of magnetic nanoparticles for biomedical imaging