Self-assembly of cellulose nanocrystals confined to square capillaries.