Elliptic problems with nonlinear terms depending on the gradient and singular on the boundary