Bourgain-Brezis-Mironescu formula for $W^{s,p}_q$-spaces in arbitrary domains