Strength properties of nanoporous materials: numerical and analytical modeling