设集合M={2,-2a,a²-3}、N={a²+a-4,2a+1,-1}且2∈M∩N,求实数a的值