Photoswitchable Catalysis Mediated by Nanoparticles