Preparation, structure, and properties of mercury layer and chain compounds