Crossover among structural motifs in transition and noble-metal clusters