Structural, vibrational, and electronic properties of BaReH9 under pressure