Charged-particle multiplicity distributions over a wide pseudorapidity range in proton-proton collisions at sqrt(s)= 0.9, 7, and 8 TeV