Flow-based Domain Randomization for Learning and Sequencing Robotic Skills