Thiosemicarbazide and thiocarbohydrazide functionalized chitosan as ecofriendly corrosion inhibitors for carbon steel in hydrochloric acid solution.