Text this: ARTEM: a method for RNA and DNA tertiary motif identification with backbone permutations