New tool to detect species declines can help protect biodiversity