Surge protection of substations