Inhomogeneous electron liquid in the free-space building block Li2C2 plus its dimer and trimer