Monitoring ecosystem degradation using spatial data and the R package spatialwarnings