Optimization of diagnostic methods and criteria of endometritis for various postpartum days to evaluate infertility in dairy cows.