Optimal adjustment sets in non-parametric graphical models