Bound states and entanglement in the excited states of quantum spin chains