Interactions between nucleic acid bases in hydrogen bonded and stacked configurations: The role of the molecular charge distribution