Generating Functional For Electron-Phonon Systems From Functional Integrals With One-Sided Boundary Conditions