Replica Bethe ansatz derivation of the Tracy–Widom distribution of the free energy fluctuations in one-dimensional directed polymers