Bethe ansatz description of edge-localization in the open-boundary XXZ spin chain