Pilot who suffered medical emergency during flight describes 'God's plan'