Infinite vs finite dimensional modeling of homoclini bifurcations and their control in one-dimensional continuous systems