A continuum model of deformation, transport and irreversible changes in atomic structure in amorphous lithium–silicon electrodes