Measurement of masses in the tt¯ system by kinematic endpoints in pp collisions at √s = 7 TeV