Extraction of the shape of small defects on the surface of ferrite cores