S&P lowers credit rating for five countries