S&P upgrades Chinese developer Greenland days after cutting to ‘selective default’