Assessing and managing risks to ecosystem biodiversity