Parameter calculation of photovoltaic modules using a genetic algorithm