A magnetic, reversible pH-responsive nanogated ensemble based on Fe3O4 nanoparticles-capped mesoporous silica.