Dimension reduction of homoclinic orbits of buckled beams via the nonlinear normal modes technique