The working principle of solar photovoltaic cells is