Associations of cytological endometritis with energy metabolism and inflammation during the periparturient period and early lactation in dairy cows.