Variable selection for generalized varying coefficient models with longitudinal data