Synchronizing N cart-pendulums using virtual holonomic constraints