Influences of temperature and atmosphere on thermal stability of BaCrO4