Center manifolds for smooth invariant manifolds