A tomographic approach to quantum nonlocality