Path planning for UAVs in the presence of threat zones using convex optimization.