In vitro evaluation of the viscoelastic properties of chitosan–thioglycolic acid conjugates