Molecular dynamics study of the formation mechanisms of ionic SDS and nonionic C12E8 micelles and n-dodecane droplets