函数f(x)=log(2)(ax^2+ax+2x+2a+2)在区间[a+2,2a+4]上恒有定义,实数a的取值?