Defining and measuring biodiversity