Numerical studies on capillary discharges as focusing elements for electron beams