Maternity units risk closure amid payment, staffing problems