Discriminative discovery of sequence motifs with hidden Markov models