A closed-form solution to the Ramsey growth model with the von Bertalanffy population law