Transfer of Entangled States for Two Atoms Via Cavity Decay