who was the president of mexico in 1848