Sensex closes 291 pts up, Nifty above 24,100; IT stocks lead gains