Structure and stacking-fault energy in metals Al, Pd, Pt, Ir, and Rh