Bridging the gap between general probabilistic theories and the device-independent framework for nonlocality and contextuality - Chiribella, Giulio; Yuan, Xiao (Information and Computation, 2016)