Mechanisms of intermittent state transitions in a coupled heterogeneous oscillator model of epilepsy