The effect of chemical distribution on the magnetocaloric effect: A case study in second-order phase transition manganites