Sensex rises 287 points, Nifty above 24,300 on volatile expiry day