Adaptation of the weighted Kaplan-Meier method to time-dependent ROC curves