Perelman's W--entropy and Statistical and Relativistic Thermodynamic Description of Gravitational Fields