Joint Manifold Learning and Density Estimation Using Normalizing Flows