On the dipole moments and chemical properties of pyrazole and imidazole