Indian rupee ends nearly flat, wedged between oil swings, RBI intervention