Semiparametric estimation of censored selection models with a nonparametric selection mechanism