Symmetry aspects of diatomics‐in‐molecules (DIM) calculations: Construction of spin‐adapted bases