Email (record): Automated image segmentation-assisted flattening of atomic force microscopy images