Sensex Nifty erase gains to end lower as IT stocks weigh in on stock markets