Risk factors associated with detailed reproductive phenotypes in dairy and beef cows.