Text this: Solar cell designs by maximizing energy production based on machine learning clustering of spectral variations