On the stability of motion for continuous mechanical systems