BRep Boundary and Junction Detection for CAD Reverse Engineering