Input impedance of vertical dipoles near a lossy half space