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