In extreme cases, surgically severing the corpus callosum is a treatment for which of the following conditions?