Trefftz indirect method applied to nonlinear potential problems