Hegel's ontology and the theory of historicity