Using the Ising model to understand the brain