ONGC to maintain financial flexibility as earnings steady: S&P