Closed queueing networks with finite capacities: blocking types, product-form solution and performance indices