Two- and three-dimensional elastic networks with rigid junctions: modeling within the theory of micropolar shells and solids