Joint modeling of multistate and nonparametric multivariate longitudinal data