Control of the homoclinic bifurcation in buckled beams: infinite-dimensional vs reduced-order modeling