Spatial complexity method for tracking brain development and degeneration using functional near-infrared spectroscopy