Bernoulli substitution in the Ramsey model: Optimal trajectories under control constraints