Sensex gains over 1,800 points; Nifty ends near 8,300