Magnetocaloric response of binary Gd-Pd and ternary Gd-(Mn,Pd) alloys