Role of local disorder in the dielectric response of BaTaO2N