Optimal path planning and power allocation for a long endurance solar-powered UAV | Synapse