Ted Hui sentenced to 3 1/2 years in jail