Capital flows and the financial crisis in Mexico