On the hollow-cathode effect: conventional and modified geometry