Queueing theoretic analysis of labor and delivery