Stainless steel optimization from quantum mechanical calculations