Electron Self-Injection and Trapping into an Evolving Plasma Bubble