Shaking-moment balancing of mechanisms with principal vectors and momentum