Select energy and pharma stocks make gains; Infosys tumbles over 2%