Canada reaches settlement with Canadian detained in China for nearly three years