Output gaps and policy stabilisation in Latin America: the effect of commodity and capital flow cycles