who sold part of mexico to the usa