On variational principle and canonical structure of gravitational theory in double-foliation formalism