Variational analysis of nonlinear directional couplers with quadratic nonlinearities