Gravar-mail: Seizure prediction in hippocampal and neocortical epilepsy using a model-based approach