Statistical Mechanics Models for PdH x and PdD x