A fractional calculus approach to the mechanics of fractal media