On conformational analysis of chitosan