A new fractal dimension for curves based on fractal structures