GRAVITY AND BF THEORY DEFINED IN BOUNDED REGIONS