Estimation and inference for distribution functions and quantile functions in treatment effect models