The effect of ionization and deprotonation of guanine on the formation of base pairs