The basic principles of solar photovoltaics