The real income channel and contractionary devaluations in a heterogeneous agent model for Latin America