Theoretical description of the magnetocaloric effect in Mn-Fe-P-Si alloys