Theory of Neutral-Ionic Transition in Organic Crystals. III. Effect of the Electron-Lattice Interaction