High-pressure study of ternary mercury chalcogenides: phase transitions, mechanical and electrical properties