The theory of constructions: Categorical semantics and topos-theoretic models