Dissociative electron attachment and vibrational excitation of H2 by low-energy electrons: Calculations based on an improved nonlocal resonance model