Language models as tools for investigating the distinction between possible and impossible natural languages