Basic working principle of solar cells