Structural and electronic properties of BaCrO4 at high-pressures