Effect of Vacancy Defects on the Properties of CoS2 and FeS2