Boundary-induced topological transition in an open SSH model