Indian Oil Corp. shares gain 3.7% as Sensex rises