Infosys Q2 profit beats estimates, up 5%; revenue rises 3.1%