Particle based computation of mechanics in granular multiphase electrodes