Sensex and Nifty Rise as Markets Close Higher Amid Global Optimism