Synthesis, Characterization, and Optical Properties of Organic–Inorganic Hybrid Layered Materials: A Solvent-Free Ligand-Controlled Dimensionality Approach Based on Metal Sulfates and Aromatic Diamines