Surge arrester for photovoltaic applications