The effects of physical and chemical interactions in the formation of cellulose aerogels