Measuring resilience and early warning signals of critical slowdown in forest and grassland habitats using time-series satellite data