Determination of freeze-out conditions from lattice QCD calculations