Sensex gains 232 points, Nifty 50 ends above 23,700; banking stocks shine