Qubit-environment-entanglement generation and the spin echo