Phase equilibria and structural stability of intermetallics in the PtPdHf and PtPdZr systems