Elliptic boundary value problems involving oscillating nonlinearities