Crystal chemistry and features of the structure formation of mercury oxo- and chalcohalides