Biochemical sensors based on magnetic nanoparticles