Theory for the extension of a linear polyelectrolyte attached at one end in an electric field