Mechanisms of heat damage in proteins