CONNECTION BETWEEN THE THERMOELASTIC POTENTIAL AND THE STATE SPACE FORMULATION OF THERMOELASTICITY