Longitudinal semiparametric transition models with unknown link and variance functions