Structural classification of photovoltaic cells