A British company investigator, Peter Humphrey, has been sentenced to two-and-a-half years in jail for trafficking personal data in China.