Habitat quality matters for the distribution of an endangered leaf beetle and its egg parasitoid in a fragmented landscape