Joint route planning for UAV and sensor network for data retrieval