Sustainable preparation and characterization of thermally stable and functional cellulose nanocrystals and nanofibrils via formic acid hydrolysis