China releases Canadian in spy case after two years