Dynamic server allocation for unstable queueing networks with flexible servers