Ab-initio investigation of Er3+ defects in tungsten disulfide