Ex-New York state official charged with acting as secret agent for China