The output effect of gross foreign investment reversals