China sentences activist to 10 years over writings