Summation of ring diagrams of nuclear thermodynamic potential