IT stocks gain up to 3 pc on Cognizant Q2 earnings