Study of the fundamental units of novel semiconductor materials: Structures, energetics, and thermodynamics of the Ge-Sn and Si-Ge-Sn molecular systems