Optimal summability of solutions to nonlinear elliptic problems