Thermal stability indices for polymeric materials based on energy considerations