Chemistry and application of chitin and chitosan