One-dimensional impenetrable anyons in thermal equilibrium: II. Determinant representation for the dynamic correlation functions