On the thermoelastic behavior of polymer networks