'Brazil nut puzzle' cracked by researchers