Solar energy can be converted into electricity by solar cells (photovoltaic cells)123. These cells generate a small electric voltage when light strikes the junction between a metal and a semiconductor or the junction between two different semiconductors1. The process of converting solar energy into electricity involves the use of photovoltaic cells, which absorb sunlight, trigger the photovoltaic effect to generate an electric current, convert the direct current (DC) into alternating current (AC) using a solar inverter, and supply electricity to homes and devices2. At the end of 2017, there was 398 GW of solar PV installed around the world, meeting around two per cent of global electricity demand4.