Factors affecting the performance of photovoltaic cells