factors that lead to the war of 1812