Entanglement increases the error-correcting ability of quantum error-correcting codes