Search for a heavy gauge boson W' in the final state with an electron and large missing transverse energy in pp collisions at sqrt(s) = 7 TeV