Stabilization of a thermosetting emulsion system using ionic and nonionic surfactants