Theoretical understanding of electrochemical phenomena in 2D electrode materials