Entanglement-assisted quantum error-correcting codes from RS codes and BCH codes with extension degree 2