A continuation theorem for periodic boundary value problems with oscillatory nonlinearities