Symbolic algebra for the calculation of the series and parallel resistances in PV module model