How to detect the quality of solar cells