Text this: A New Model for Extracting the Physical Parameters from I-V Curves of Organic and Inorganic Solar Cells