Pakistanis begin voting in a knife-edge general election between former cricketer Imran Khan against the party of jailed ex-Prime Minister Nawaz Sharif.