Modeling the Metal–Insulator Phase Transition in LixCoO2 for Energy and Information Storage