Realization of tunnel barriers for matter waves using spatial gaps