Multiple Solutions for an Asymptotically Linear Problem with Nonlinearity crossing a Finite Number of Eigenvalues and Application to a Beam Equation