On the principle of virtual powers in continuum mechanics