Measurement of the electron charge asymmetry in inclusive W production in pp collisions at sqrt(s) = 7 TeV