Synthesis, Structure, and Photoluminescence Properties of a Metal-Organic Framework with Hexagonal Channels: Selective Turn-On Sensing for Mg2+ Ion