How does the pH affect the charge in denaturation of amino acids in proteins and result in denaturation and loss of enzyme activity?