Transition Matching: Scalable and Flexible Generative Modeling