How did the Emancipation Proclamation change the purpose of the war?