In the past few decades, the fabrication of solar cells has been considered as one of the most promising ways to meet the increasing energy demands to support the development of modern society as well as to control the environmental pollution caused by the combustion of fossil fuels.