Lightning protection of advanced energy systems