Denaturation: an example of a catastrophe II. Two-state transitions