Nonlinear potentials, local solutions to elliptic equations, and rearrangements