The relationship between semiconductors and photovoltaic cells