the mexican war began when quizlet