The principle of power generation of solar cells