Liquid–liquid phase separation during amphiphilic self-assembly