Probing Charge Injection-Induced Structural Transition in Ionic Liquids Confined at the MoS2 Surface