what is the name of the peace settlement that ended the war of 1812?