Text this: Effect of sulfur defects on the photoelectric and magnetic properties of metal-doped CrS2