Stochastic resonance in a non-Poissonian dichotomous process: A new analytical approach