Role of exchange splitting and ligand-field splitting in tuning the magnetic anisotropy of an individual iridium atom on TaS2 substrate