Context-dependent interactions in an ant-plant-hemipteran symbiosis