2U's revenue up 32% in Q2 as losses decelerate