Electrostatic tuning of the superconductor to insulator transition of YBa2Cu3O7−x using ionic liquids