Half masses of particles produced in π–C interactions at 40 GeV/c and phase transition