Generalized iterated-sums signatures