Modelling of the Peltier effect in magnetic multilayers