Static-kinematic duality and the principle of virtual work in the mechanics of fractal media