设全集{2,3,a²+2a-3},A={2,|a+7|},若A的补集={5},求a的值