Physical and chemical structure of planet-forming disks probed by millimeter observations and modeling