Ergodic properties of the multidimensional rayleigh gas with a semipermeable barrier