Space-charge neutralization of heavy ion beams via electron injection