Measurement of differential top-quark-pair production cross sections in pp collisions at sqrt(s) = 7 TeV