Atomistic potentials for palladium–silver hydrides