Chalcogenide glass-ceramic with self-organized heterojunctions: application to photovoltaic solar cells