Mathematical Model for Regular and Irregular PV Arrays with Improved Calculation Speed