An energy-efficient parallel algorithm for real-time near-optimal UAV path planning