Planar vs. three-dimensional X62-, X2Y42-, and X3Y32- (X, Y = B, Al, Ga) metal clusters. An analysis of their relative energies through the turn-upside-down approach