Ab initio determination of the electron affinities of DNA and RNA nucleobases.