Method of determining the essential geometric characteristics of the metal foam structure