Magnetic nanoporous microparticles for biosensors and bioreactors