ISAC from the Sky: UAV Trajectory Design for Joint Communication and Target Localization