How to solve the internal resistance of solar panels