Stable multi-GeV electron accelerator driven by waveform-controlled PW laser pulses