Self-assembled chitin nanofibers and applications