Azobenzenes and Imines as Molecular Switches on Gold(111): Structure, Excitonic Coupling, and Photoisomerization