Controlling the outcome of a carbocation-initiated cyclisation