lightning and switching impulse voltage generation