Self-assembly at the liquid-liquid and solid-liquid interfaces