Forced vibrations of wave equations with non-monotone nonlinearities