NIFTY50, SENSEX rise 1.7% in second consecutive week