Free and localised exciton of ternary nanocrystals in CsX-PbX2 thin films (X = Cl, Br, I)