Ho’s theorem in global–local mode interaction of pin-jointed bar structures