Threshold photodetachment spectroscopy of the astrochemical anion CN.