Gibbs energies of formation of intermetallic phases in the systems Pt-Mg, Pt-Ca, and Pt-Ba and some applications