Sequence learning with hidden units in spiking neural networks