The Welsh Ambulance Service has declared that its critical incident is over.