Experimental and numerical analysis of the electron injection in a Malmberg-Penning trap