Trapped electron acceleration by a laser-driven relativistic plasma wave