Fundamentals of chitosan for biomedical applications