Nonuniform electron distributions in a solenoidal ioniser