Similarity in phase diagrams between ionic and nonionic surfactant solutions at constant temperature