Vibrational excitation of polar molecules by electron impact. II. Direct and resonant excitation in H2O