Predicting early and middle lactation energy balance in dairy cattle.