Simulation of hydrogen trapping at defects in Pd