Relationships between the chain flexibilities of chitosan molecules and the physical properties of their casted films