Methods for detecting early warning signals of critical transitions