Symmetries of SF6 and CO2 in liquid and high-pressure gaseous states