Chitosan as a responsive biopolymer in drug delivery