Estimation of the engaged transmission ratio