Nonresonance conditions on the potential for a second order periodic boundary value problem