Monomer environments during the solid-state photodimerization of trans-p-bromocinnamic acid