Preferential acceleration of heavy ions in the reconnection outflow region. Drift and surfatron ion acceleration