Comparison between alkalimetal and group 11 transition metal halide and hydride tetramers: Molecular structure and bonding