Sensex gains 8 points, Nifty above 23,400 amid mixed global cues