Flows for simultaneous manifold learning and density estimation