The structure of classical extensions of quantum probability theory