Biodiversity loss decreases parasite diversity: theory and patterns