Integration over subdomain

You should use dS with an appropriate mesh function and a volume marker to have a consistent restriction of the “+” and “-”. See: Integrating over an interior surface - #4 by MiroK