Caution is needed when applying Margalef diversity index