When installing a PV array on a composite shingle roof, what is the primary purpose of using flashing at each roof penetration?