若函数f(X)=x²-|x+a|为偶函数,求实数a