Protecting photovoltaic arrays against galvanic corrosion and lightning strikes