statistical mechanical approach to ecosystem analysis: The relative abundance pattern of species in a multispecies ecosystem