Rydberg series in small moleculesXII. Photoelectron spectroscopy and electronic structure of pyrrole