Metal–metal and metal–semiconductor composite nanoclusters