During thunderstorms the energy of lightning discharge causes