Error-locating pairs for cyclic codes