Electron acceleration in a relativistic electron plasma wave