Learning UAV-based path planning for efficient localization of objects using prior knowledge