Time change for flows and thermodynamic formalism