How to tell if charged molecules will react as nucleophiles or electrophiles