Understanding the structure of electrodes in Li-ion batteries: A numerical study