Materials under the mathematical microscope