Epileptic seizures detection and the analysis of optimal seizure prediction horizon based on frequency and phase analysis