Midcap IT stocks see gains of up to 14% led by Firstsource, Sonata Software