Optimization of pretreatment conditions for enhanced sugar release