Infosys beats expectations; shares sink