Crystal chemistry of mercury oxo- and chalcohalides