Joint models for survival and longitudinal data when the observation process is informative