by imparting shocks to the workpiece and detecting the vibrations or the acoustic waves caused by the shocks