Simple model of stacking-fault energies.