Hydrogel, aerogel and film of cellulose nanofibrils functionalized with silver nanoparticles.