Effect and mechanism of cellulose nanofibrils on the active functions of biopolymer-based nanocomposite films.