Taiwan’s High Court has sentenced a retired air force colonel to 20 years in prison for spying for China.