若函数y=log2[ax2+(a-1)x+1/4]的值域为R,求实数a的取值范围