what peace agreement officially ended the war of 1812?