II-VI and I-III-VI2 alloy crystals for photovoltaic applications