Kontaveit wins in Transylvania, completes WTA Finals line-up