Method for detecting mechanical features of a material and apparatus that carries out this method