On the formation of a conducting surface channel by ionic-liquid gating of an insulator