Mechanisms of epileptogenesis in cortical structures