K-means clustering for support construction in diffractive imaging