Edge engineering of a topological Bi(111) bilayer