Grain Segmentation in Atomic Force Microscopy for Thin-Film Deposition Quality Control