Periodic solutions of nonlinear wave equations with non-monotone forcing terms