Structure and properties of solar cells