Laplacian eigenmaps and bayesian clustering based layout pattern sampling and its applications to hotspot detection and OPC