Mean field solution of the Ising model on a Barabási–Albert network