Pakistan's former Premier Khan appears in court in contempt case