Density functional study of AgnPd and AgnPdH clusters