Model of banding in diffusive and convective regimes during directional solidification of peritectic systems