Detecting, correcting deficiencies: diagnostic imaging to boost solar cells