Theoretical study of a palladium cluster on carbonaceous supports