Sensex, Nifty end at record highs