Injection of high-current relativistic electron beams into plasma and gas