Nifty ends above 8700, Sensex flat; IT Metals outperform