Thermodynamic relationships for shearing linear viscoelastic fluids