Explain the working principle of solar cells