Global indeterminacy of the equilibrium in the Chamley model of endogenous growth in the vicinity of a Bogdanov–Takens bifurcation