Methodology of physical mesomechanics as a basis for model construction in computer-aided design of materials