Hydrolysis of cellulose: mechanisms of enzymatic and acid catalysis