The cellulose nanofibers for optoelectronic conversion and energy storage