Selection of lightning arrester for capacitors