Exploring deuterium beam operation and the behavior of the co-extracted electron current in a negative-ion-based neutral beam injector