Dynamics of phase separation in the presence of surfactants