Sudden death, birth and stable entanglement in a two-qubit heisenberg XY spin chain