Habitat selection determines abundance, richness and species composition of beetles in aquatic communities