Merger and ring galaxy formation rates at z ≤ 2