Confined crystallization and phase transition in semi-rigid chitosan containing long chain alkyl groups