Networks of motifs from sequences of symbols