Find the value of a such that the sum of the squares of the roots of the equation x2−(a−2)x−(a+1)=0 is least