Hamiltonian diffeomorphisms of toric manifolds and flag manifolds