Resource-Aware Distributed Epilepsy Monitoring Using Self-Awareness From Edge to Cloud