Location management and routing in mobile wireless networks