when did the war of 1812 start and end