A neuronal model for the discharge patterns produced by cyclic inputs