Simplex minimization and the inverse dipole localization problem of electroencephalography