Chinese Australian writer Yang Hengjun has been handed a suspended death sentence by a Chinese court.