Pakistani court sentences ex-Premier Imran Khan to 10 years