Searches for long-lived charged particles in pp collisions at √s = 7 and 8 TeV