The magnetocaloric effect in R5Si4 (R = Gd, Tb): a Monte Carlo calculation