Review on detection of critical transition in ecosystems