An improved detection of clusters in complex ecological systems by using the Ripley’s K-function