Disentangled Representation Learning and Generation With Manifold Optimization