A Chinese court has sentenced Canadian businessman Michael Spavor to 11 years in prison for espionage.