Optical properties of azobenzene-functionalized self-assembled monolayers: Intermolecular coupling and many-body interactions