Nonparametric maximum likelihood estimation in cure-rate models based on uncensored and censored data