EEG SIGNALS IN EPILEPSY AND MIGRAINE: Analysis and Simulations by Multi-Agent Systems