S&P upgrades Pakistan’s credit rating