During a thunderstorm, Charles watched flashes of lightning through his window. Which process best describes the cause of the lightning?