On the tradeoff between antibiotic efficacy and the selection for resistance in spatial gradients