S&P raises Pakistan rating, says outlook stable