Reduced resilience as an early warning signal of forest mortality