Cubic spline elements for modelling microstructural evolution of materials controlled by solid-state diffusion and grain-boundary migration