Precipitation of mixtures of anionic and cationic surfactants