Sensex, Nifty 50 snap 3-day losing run, end over 0.8% higher