what peace settlement ended the war of 1812?