Entanglement-assisted quantum error correction