Capturing brain structure using the sandpile model of criticality