ONGC to maintain financial flexibility as earnings steady, says S&P