An Analytical Algorithm for Extracting Model Parameters in a Lumped-Parameter Equivalent Circuit of Solar Cells