Chemical structure and compatibility of polyamide–chitin and chitosan blends