War, inflation worsen conditions for emerging markets: S&P