Self-guided beams in a diffractive χ(2) medium: variational approach