Photochemistry of molecules adsorbed on silver-island films: effects of the spatially inhomogeneous environment