Studies of imidazole and pyrazole protonation using electrostatically trained neural networks