War of 1812 and its aftermath