Boundary Topological Entanglement Entropy in Two and Three Dimensions