A Complex Systems Approach to Epilepsy