The preparation and electrical properties of NiSexS2−x pyrites