Tuning the collective switching behavior of azobenzene/Au hybrid materials: flexible versus rigid azobenzene backbones and Au(111) surfaces versus curved Au nanoparticles.