Biophysical mechanisms of antimicrobial resistance in swarming B. subtilis