CNO and pep neutrino spectroscopy in Borexino: Measurement of the deep-underground production of cosmogenic C11 in an organic liquid scintillator