Cadmium(II) and zinc(II) metal–organic frameworks with anthracene-based dicarboxylic ligands: solvothermal synthesis, crystal structures, and luminescent properties