A finite element perturbational approach for the study of nonlinear oscillations of a beam