Unitary Transformation And Trust-Region Optimization Of Localized Orbitals Using Riemannian Manifolds