Free energies of Boltzmann machines: self-averaging, annealed and replica symmetric approximations in the thermodynamic limit