Medium effect on acid degradation of cotton and wood celluloses