How was Mexico affected by the Treaty of Guadalupe Hidalgo?