Entangling two unequal atoms through a common bath