Balanced Foaming and Gel Reaction of Pentamethyldiethylenetriamine