Pakistans tidigare premiärminister Imran Khan döms till tre års fängelse för mutbrott, uppger statlig tv.