China ex-deputy intelligence chief given life sentence