The researchers have developed a mathematical model to understand the physiological effects of non-invasive brain stimulation