BAT: Learning to Reason about Spatial Sounds with Large Language Models