Variational solutions of some nonlinear free boundary problems