Describir: Variational principle for scale-free network motifs