A piecewise Weibull mixed model for the analysis of length of productive life of dairy cows.