Potts model on Sierpinski carpets and their relation to hypercubic lattices of non-integer dimensionality