Kinematical theory of images from polycrystalline and random-network structures