Ionic surfactant thermal analysis