Forces on flux vortices in an arbitrary configuration