Autonomous Mission Planning for UAVs: A Cognitive Approach