Sensex, Nifty Post Second Weekly Gains Led By Energy Shares