Weil algebra structure and geometrical meaning of BRST transformation in topological quantum field theory