Acceleration of heavy ions on auroral field lines