Adiabatic entanglement in two-atom cavity QED