Probing the molecular environment using spin-resolved photoelectron spectroscopy.