Coupling Two-Dimensional Materials With Solid-State Ionics For Programmable Electronics