Dark-matter bound states from Feynman diagrams