Accurate numerical simulation of electrodiffusion and water movement in brain tissue with cortical spreading depression as a case study