Segmentation of digital microscopy data for the analysis of defect structures in materials using nonlinear diffusions