A Theoretical Investigation about Photoswitching of Azobenzene Adsorbed on Ag Nanoparticles