REC shares gain 3.49% as Sensex rises