Theory of self‐similar network structures in sedimentary and igneous rocks and their investigation with microscopical and physical methods