Mathematical modeling of electrophysiological activity in epilepsy