Robust quantum entanglement generation and generation-plus-storage protocols with spin chains