Coupled diusion and mechanics in battery electrodes