A canonical form for compact nonpositively curved manifolds whose fundamental groups have nontrivial center