Molecular Dynamics Simulation of Adsorption from Microemulsions and Surfactant Micellar Solutions at Solid-Liquid and Liquid-Liquid Interfaces