Joint longitudinal and time-to-event models: development, implementation and applications in health research