Theoretical determination of electron affinity and ionization potential of DNA and RNA bases