An embedded-atom method interatomic potential for Pd–H alloys