Waveform Control of Relativistic Electron Dynamics in Laser-Plasma Acceleration