Pressure-induced phase transformation in BaS