Natural boundary conditions in geometric calculus of variations