Development and validation of a seizure initiated drug delivery system for the treatment of epilepsy