Complete sets of diagonal operators in quantum-statistical mechanics