ENH: implement `digitize` with `PyArray_SearchSorted`

Closes #2656 and replaces #4184.
That makes sense. The change should be documented with a `.. versionadded::` and mentioned in the release notes.