Phase-field model for diffusion-induced grain boundary migration: An application to battery electrodes