Optimal global rate of convergence in nonparametric regression with left-truncated and right-censored data