Generating transition states of chemical reactions via distance-geometry-based flow matching