Rising energy prices create social challenges, S&P says