H2 infrared line emission from the ionized region of planetary nebulae