On the fractal dimension of small-scale magnetic structures in the Sun