Structure and bonding of triatomic molecules