A Times photographer made two trips to southern Mexico to follow groups of migrants as they walked toward the United States.