A court in China has sentenced an official to death for leaking national secrets to a foreign country