mechanism of photovoltaic cells