Function to compute a vector of joint probabilities from a vector of generalizedmarginal interactions (GMI)