Variational principles in the linear theory of viscoelusticity