How to measure the resistance at both ends of a solar panel