How habitat affects the benefits of communication in collectively foraging honey bees