Electron-Induced Excitation, Recombination, and Dissociation of Molecular Ions Initiating the Formation of Complex Organic Molecules