Nonuniform nonresonance conditions at the two first eigenvalues for periodic solutions of forced Lienard and Duffing equations