Chemical autopoiesis: self-replicating micelles and vesicles