Nonparametric estimation of relative mortality functions