Extensive statistical mechanics based on nonadditive entropy: Canonical ensemble