Thick brane in 7D and 8D spacetimes