Measuring the preparedness of health facilities to deliver emergency obstetric care in a South African district