Gravar-mail: Survival analysis with internal covariates modelled using a longitudinal dispersion model and flexible links