Statistical inference based on non-smooth estimating functions