Topochemistry of cellulose nanofibers resulting from molecular and polymer grafting