Pakistan's former prime minister Imran Khan has been given a 14-year jail sentence in a land corruption case, officials and his lawyer have said.