Effects of the magnetic topology on turbulence in the SOL and plasma edge of W7-X