Estimating the Intrinsic Dimension of Data with a Fractal-Based Method