The braid indices of alternating links