Module Principle in Structure Formation Studies of Mercury Oxo and Chalcogen Halides