An open-shell spin-restricted coupled cluster method: application to ionization potentials in nitrogen