Biomimetic confined self-assembly of chitin nanocrystals