The BFK-gluing formula and the curvature tensors on a 2-dimensional compact hypersurface