Elliptic boundary-value problems with discontinuous nonlinearities