Magnetocaloric effect in manganites: ferromagnetism and charge-ordering effects