Association between loss of hospital-based obstetric services and birth outcomes in rural counties in the United States