Correlating electronic and chemical structures of materials to develop an understanding of the relationship between the nanoscale chemical structure and electrical properties of materials to accelerate their progress in the application as the active layer in solar cells.