Study unlocks nanoscale secrets for designing next-generation solar cells