Minkowski functionals for phase behavior under confinement